<?
class header_block_controller extends block {

  protected $Langs = array();

  public function prepare() {
    $this->Langs = helper::get_lang_list();
    $this->Urls  = array();
    
    foreach ($this->Langs as $Key=>$Name) {
      $Params = array(
        "index"=>array(      
          "lang"=>$Key
        )
      );
      
      $this->Urls[$Key] = helper::add_params($Params);
    }//foreach
  }
  
  public function finish() {
  }
}